package com.hkts.flow.feign;

import com.hkts.flow.api.flowable.HkAssessmentInfoVo;
import com.hkts.flow.api.flowable.custom.FormAndItemResultVo;
import com.hkts.flow.api.flowableTo.HkAssessmentScoreTo;
import com.hkts.flow.api.flowableTo.HontUserTo;
import com.hkts.flow.api.flowableTo.PerformanceTo;
import com.hkts.flow.api.performanceVo.PerformanceInfoNameAndUserNickVo;
import com.hkts.flow.manager.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Map;

/**
 * @ClassNameFeignPerformance
 * @Description
 * @Author yck
 * @Date2020-12-17 13:59
 * @Version V1.0
 **/
@FeignClient(value="performance",configuration = FeignHeadersInterceptor.class)
public interface FeignPerformance {
    //远程调用前台用户
    @GetMapping("/performance/hkAssessmentScore/addNewAssessmentScore")
    public Result addNewAssessmentScore(PerformanceTo to);

    @PostMapping("/performance/hkAssessmentScore/updateStateByProcessInstanceId")
    public Result updateStateByProcessInstanceId(HkAssessmentScoreTo to);

    //查询当前待办的绩效名称等数据
    @PostMapping("/performance/hkAssessmentInfo/getHkAssessmentInfoByProIds")
    public List<HkAssessmentInfoVo> getHkAssessmentInfoByProIds(List<String> ids);

    //根据流程实例获取被考核用户名称
    @PostMapping("/performance/hkAssessmentScore/getHkAssessmentScoreByProIds")
    public List<Map<String,Object>> getHkAssessmentScoreByProIds(List<String> ids);
    //根据流程实联查用户/绩效信息
    @PostMapping("/performance/hkAssessmentScore/getHkAssessmentInfoAndUserNickNameByProIds")
    public List<PerformanceInfoNameAndUserNickVo> getHkAssessmentInfoAndUserNickNameByProIds(List<String> ids);
}
